/* ===========================================================
			Resonance
	NPC Name: 		Lirin
	Map(s): 		Snow Island: Rien (140000000)
	Description: 	Quest - Physical Fitness Test
=============================================================
Version 1.0 - Script Done.(11/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("Eh, is 5 too little for you? If you wish to defeat more for the purpose of training, that's fine. If it's for your training, then... I'll let you slide this time.");
			qm.dispose();
			return;
		}
	}
	if (status == 0)
		qm.sendNext("Okay, now let's have you go through a fitness test to see if you're fit. It's really simple, though. All you need to do is take on the most powerful monster on this island, #o0100134#. About #r50#k of them would suffice...");
	if (status == 1)
		qm.sendAcceptDecline("...but then again, wiping out the whole population of #o0100134# is never good for the environment, so I just want you to defeat 5 of them instead. You're here to train, not to break down the eco-system!");
	if(status == 2){
		qm.forceStartQuest();
		qm.sendNext("#o0100134# can be found in the deeper parts of the island. Head all the way left of town, and you'll see #b#m140010200##k. Go in there and defeat #r5 #o0100134#s#k.");
	}if(status == 3){
		qm.showWZEffect("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1", 1);
		qm.dispose();
	}
}

function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendOk("I see that you have defeated all 5 Murukuns. Have you noticed how much stronger you have gotten since the first set of training? Well... now that you're ready, let's get on with the real training, and...wait! \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 1200 exp");
	if(status == 1){
		qm.forceCompleteQuest();
		qm.gainExp(1200);
		qm.sendNext("Come to think of it, I still have yet to ask you of your name. You are one of the five heros, yes, but... who are you? Wait, oh yeah, you lost all of your memories...");
	}if(status == 2)
		qm.sendNextPrev("Anyway, it's time for you to begin the real training towards defeating Black Wizard, and it's a must for us to know which one of the five heroes you are in order to program the training that caters to your strengths. There's no point of learning skills with weapons that do not fit your profile, and it will definitely not be enough to take on the Black Wizard.");
	if(status == 3){
		qm.sendPrev("But really... who are you?");
		qm.dispose();
	}
}
	